-- GENERATED SPELL FOR [Voodoo Troll] --


function spell0_3206(pUnit, Event) --@Healing Wave,Heal--
pUnit:FullCastSpellOnTarget(332,pUnit)
pUnit:RegisterEvent('Sorts_3206', 2000, 1)
end

function spell1_3206(pUnit, Event) --@Lightning Shield,Self--
pUnit:FullCastSpellOnTarget(324,pUnit)
pUnit:RegisterEvent('Sorts_3206', 626, 1)
end

function Sorts_3206(pUnit, Event)
local choix_sorts_3206 = math.random(0, 1)
if choix_sorts_3206 == 0 then
pUnit:RegisterEvent('spell0_3206', 1, 1)
end
if choix_sorts_3206 == 1 then
pUnit:RegisterEvent('spell1_3206', 1, 1)
end
end

function mob3206_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3206', math.random(1500, 3000), 1)
end

function mob3206_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3206_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3206_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3206, 1, 'mob3206_Action')
RegisterUnitEvent(3206, 2, 'mob3206_Leave')
RegisterUnitEvent(3206, 3, 'mob3206_Kill')
RegisterUnitEvent(3206, 4, 'mob3206_Die')
